package com.example.patient.dto.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author wxy
 * @Date 2021/1/20 16:00
 * @Version 1.0
 */
@Data
@ApiModel(value = "首页信息返回体")
public class IndexDataResp implements Serializable {
    private static final long serialVersionUID = 5057752178695599251L;

    @ApiModelProperty(value = "hospital")
    @JSONField(name = "hospital")
    private HospitalResp hospital;
    @ApiModelProperty(value = "dep")
    @JSONField(name = "dep")
    private List<DepResp> dep;
    @ApiModelProperty(value = "doc")
    @JSONField(name = "doc")
    private List<DocResp> doc;
    @ApiModelProperty(value = "notice")
    @JSONField(name = "Notice")
    private String notice;

    @Data
    public static class HospitalResp implements Serializable {
        private static final long serialVersionUID = -7828796754422229209L;

        @ApiModelProperty(value = "name")
        @JSONField(name = "Name")
        private String name;
        @ApiModelProperty(value = "banner")
        @JSONField(name = "Banner")
        private String banner;
        @ApiModelProperty(value = "address")
        @JSONField(name = "Address")
        private String address;
        @ApiModelProperty(value = "level")
        @JSONField(name = "Level")
        private String level;
    }

    @Data
    public static class DepResp implements Serializable {
        private static final long serialVersionUID = -1505871825719682447L;

        @ApiModelProperty(value = "id")
        @JSONField(name = "ID")
        private Long id;
        @ApiModelProperty(value = "name")
        @JSONField(name = "Name")
        private String name;
        @ApiModelProperty(value = "label")
        @JSONField(name = "Label")
        private Integer label;
    }

    @Data
    public static class DocResp implements Serializable {
        private static final long serialVersionUID = 6421640443419680357L;

        @ApiModelProperty(value = "dcId")
        @JSONField(name = "DCID")
        private String dcId;
        @ApiModelProperty(value = "head")
        @JSONField(name = "Head")
        private String head;
        @ApiModelProperty(value = "name")
        @JSONField(name = "Name")
        private String name;
        @ApiModelProperty(value = "title")
        @JSONField(name = "Title")
        private String title;
        @ApiModelProperty(value = "dName")
        @JSONField(name = "dName")
        private String dName;
        @ApiModelProperty(value = "praise")
        @JSONField(name = "Praise")
        private String praise;
    }
}
